package com.yingpai.fitness.entity;

import java.util.List;

/**
 * Created by ASUS on 2018/5/25.
 */

public class ShopSaleData {

    /**
     * result : success
     * msg : 查询成功
     * map : {"categoryList":[{"id":1,"categoryName":"运动装备","isAbandoned":true,"showNo":1},{"id":2,"categoryName":"男子鞋服","isAbandoned":true,"showNo":2},{"id":3,"categoryName":"女子鞋服","isAbandoned":true,"showNo":3}],"pageInfo":{"pageNum":1,"pageSize":6,"size":6,"startRow":0,"endRow":5,"total":6,"pages":1,"list":[{"id":52,"merchandiseName":"羽绒服","photoUrls":"http://localhost:8082/merchandisePhotos/20180202/d52a4720-2e91-444e-b9bd-25adf8265d2d234917-121019231h258.jpg","commonPrice":1,"memberPrice":1},{"id":53,"merchandiseName":"运动服","photoUrls":"http://localhost:8082/merchandisePhotos/20180202/d52a4720-2e91-444e-b9bd-25adf8265d2d234917-121019231h258.jpg","commonPrice":1,"memberPrice":1},{"id":54,"merchandiseName":"花","photoUrls":"http://localhost:8082/merchandisePhotos/20180205/0fd2ce0b-a4c7-4900-b261-089be2f99ad9234917-121019231h258.jpg","commonPrice":1,"memberPrice":1},{"id":56,"merchandiseName":"棉衣","photoUrls":"http://localhost:8082/merchandisePhotos/20180205/91d731f4-0775-48fd-9255-e9361ceeded3234917-121019231h258.jpg","commonPrice":1,"memberPrice":1},{"id":57,"merchandiseName":"大衣","photoUrls":"http://localhost:8082/merchandisePhotos/20180205/046ef492-8c44-42bb-a1d0-117ca3241b84234917-121019231h258.jpg","commonPrice":1,"memberPrice":1},{"id":58,"merchandiseName":"测试","photoUrls":"http://localhost:8082/merchandisePhotos/20180206/a345bd1c-c22a-4059-9a71-9396f57de5b1234917-121019231h258.jpg","commonPrice":1,"memberPrice":1}],"prePage":0,"nextPage":0,"isFirstPage":true,"isLastPage":true,"hasPreviousPage":false,"hasNextPage":false,"navigatePages":8,"navigatepageNums":[1],"navigateFirstPage":1,"navigateLastPage":1,"firstPage":1,"lastPage":1}}
     */

    private String result;
    private String msg;
    private MapBean map;

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public MapBean getMap() {
        return map;
    }

    public void setMap(MapBean map) {
        this.map = map;
    }

    public static class MapBean {
        /**
         * categoryList : [{"id":1,"categoryName":"运动装备","isAbandoned":true,"showNo":1},{"id":2,"categoryName":"男子鞋服","isAbandoned":true,"showNo":2},{"id":3,"categoryName":"女子鞋服","isAbandoned":true,"showNo":3}]
         * pageInfo : {"pageNum":1,"pageSize":6,"size":6,"startRow":0,"endRow":5,"total":6,"pages":1,"list":[{"id":52,"merchandiseName":"羽绒服","photoUrls":"http://localhost:8082/merchandisePhotos/20180202/d52a4720-2e91-444e-b9bd-25adf8265d2d234917-121019231h258.jpg","commonPrice":1,"memberPrice":1},{"id":53,"merchandiseName":"运动服","photoUrls":"http://localhost:8082/merchandisePhotos/20180202/d52a4720-2e91-444e-b9bd-25adf8265d2d234917-121019231h258.jpg","commonPrice":1,"memberPrice":1},{"id":54,"merchandiseName":"花","photoUrls":"http://localhost:8082/merchandisePhotos/20180205/0fd2ce0b-a4c7-4900-b261-089be2f99ad9234917-121019231h258.jpg","commonPrice":1,"memberPrice":1},{"id":56,"merchandiseName":"棉衣","photoUrls":"http://localhost:8082/merchandisePhotos/20180205/91d731f4-0775-48fd-9255-e9361ceeded3234917-121019231h258.jpg","commonPrice":1,"memberPrice":1},{"id":57,"merchandiseName":"大衣","photoUrls":"http://localhost:8082/merchandisePhotos/20180205/046ef492-8c44-42bb-a1d0-117ca3241b84234917-121019231h258.jpg","commonPrice":1,"memberPrice":1},{"id":58,"merchandiseName":"测试","photoUrls":"http://localhost:8082/merchandisePhotos/20180206/a345bd1c-c22a-4059-9a71-9396f57de5b1234917-121019231h258.jpg","commonPrice":1,"memberPrice":1}],"prePage":0,"nextPage":0,"isFirstPage":true,"isLastPage":true,"hasPreviousPage":false,"hasNextPage":false,"navigatePages":8,"navigatepageNums":[1],"navigateFirstPage":1,"navigateLastPage":1,"firstPage":1,"lastPage":1}
         */

        private PageInfoBean pageInfo;
        private List<CategoryListBean> categoryList;

        public PageInfoBean getPageInfo() {
            return pageInfo;
        }

        public void setPageInfo(PageInfoBean pageInfo) {
            this.pageInfo = pageInfo;
        }

        public List<CategoryListBean> getCategoryList() {
            return categoryList;
        }

        public void setCategoryList(List<CategoryListBean> categoryList) {
            this.categoryList = categoryList;
        }

        public static class PageInfoBean {
            /**
             * pageNum : 1
             * pageSize : 6
             * size : 6
             * startRow : 0
             * endRow : 5
             * total : 6
             * pages : 1
             * list : [{"id":52,"merchandiseName":"羽绒服","photoUrls":"http://localhost:8082/merchandisePhotos/20180202/d52a4720-2e91-444e-b9bd-25adf8265d2d234917-121019231h258.jpg","commonPrice":1,"memberPrice":1},{"id":53,"merchandiseName":"运动服","photoUrls":"http://localhost:8082/merchandisePhotos/20180202/d52a4720-2e91-444e-b9bd-25adf8265d2d234917-121019231h258.jpg","commonPrice":1,"memberPrice":1},{"id":54,"merchandiseName":"花","photoUrls":"http://localhost:8082/merchandisePhotos/20180205/0fd2ce0b-a4c7-4900-b261-089be2f99ad9234917-121019231h258.jpg","commonPrice":1,"memberPrice":1},{"id":56,"merchandiseName":"棉衣","photoUrls":"http://localhost:8082/merchandisePhotos/20180205/91d731f4-0775-48fd-9255-e9361ceeded3234917-121019231h258.jpg","commonPrice":1,"memberPrice":1},{"id":57,"merchandiseName":"大衣","photoUrls":"http://localhost:8082/merchandisePhotos/20180205/046ef492-8c44-42bb-a1d0-117ca3241b84234917-121019231h258.jpg","commonPrice":1,"memberPrice":1},{"id":58,"merchandiseName":"测试","photoUrls":"http://localhost:8082/merchandisePhotos/20180206/a345bd1c-c22a-4059-9a71-9396f57de5b1234917-121019231h258.jpg","commonPrice":1,"memberPrice":1}]
             * prePage : 0
             * nextPage : 0
             * isFirstPage : true
             * isLastPage : true
             * hasPreviousPage : false
             * hasNextPage : false
             * navigatePages : 8
             * navigatepageNums : [1]
             * navigateFirstPage : 1
             * navigateLastPage : 1
             * firstPage : 1
             * lastPage : 1
             */

            private int pageNum;
            private int pageSize;
            private int size;
            private int startRow;
            private int endRow;
            private int total;
            private int pages;
            private int prePage;
            private int nextPage;
            private boolean isFirstPage;
            private boolean isLastPage;
            private boolean hasPreviousPage;
            private boolean hasNextPage;
            private int navigatePages;
            private int navigateFirstPage;
            private int navigateLastPage;
            private int firstPage;
            private int lastPage;
            private List<ListBean> list;
            private List<Integer> navigatepageNums;

            public int getPageNum() {
                return pageNum;
            }

            public void setPageNum(int pageNum) {
                this.pageNum = pageNum;
            }

            public int getPageSize() {
                return pageSize;
            }

            public void setPageSize(int pageSize) {
                this.pageSize = pageSize;
            }

            public int getSize() {
                return size;
            }

            public void setSize(int size) {
                this.size = size;
            }

            public int getStartRow() {
                return startRow;
            }

            public void setStartRow(int startRow) {
                this.startRow = startRow;
            }

            public int getEndRow() {
                return endRow;
            }

            public void setEndRow(int endRow) {
                this.endRow = endRow;
            }

            public int getTotal() {
                return total;
            }

            public void setTotal(int total) {
                this.total = total;
            }

            public int getPages() {
                return pages;
            }

            public void setPages(int pages) {
                this.pages = pages;
            }

            public int getPrePage() {
                return prePage;
            }

            public void setPrePage(int prePage) {
                this.prePage = prePage;
            }

            public int getNextPage() {
                return nextPage;
            }

            public void setNextPage(int nextPage) {
                this.nextPage = nextPage;
            }

            public boolean isIsFirstPage() {
                return isFirstPage;
            }

            public void setIsFirstPage(boolean isFirstPage) {
                this.isFirstPage = isFirstPage;
            }

            public boolean isIsLastPage() {
                return isLastPage;
            }

            public void setIsLastPage(boolean isLastPage) {
                this.isLastPage = isLastPage;
            }

            public boolean isHasPreviousPage() {
                return hasPreviousPage;
            }

            public void setHasPreviousPage(boolean hasPreviousPage) {
                this.hasPreviousPage = hasPreviousPage;
            }

            public boolean isHasNextPage() {
                return hasNextPage;
            }

            public void setHasNextPage(boolean hasNextPage) {
                this.hasNextPage = hasNextPage;
            }

            public int getNavigatePages() {
                return navigatePages;
            }

            public void setNavigatePages(int navigatePages) {
                this.navigatePages = navigatePages;
            }

            public int getNavigateFirstPage() {
                return navigateFirstPage;
            }

            public void setNavigateFirstPage(int navigateFirstPage) {
                this.navigateFirstPage = navigateFirstPage;
            }

            public int getNavigateLastPage() {
                return navigateLastPage;
            }

            public void setNavigateLastPage(int navigateLastPage) {
                this.navigateLastPage = navigateLastPage;
            }

            public int getFirstPage() {
                return firstPage;
            }

            public void setFirstPage(int firstPage) {
                this.firstPage = firstPage;
            }

            public int getLastPage() {
                return lastPage;
            }

            public void setLastPage(int lastPage) {
                this.lastPage = lastPage;
            }

            public List<ListBean> getList() {
                return list;
            }

            public void setList(List<ListBean> list) {
                this.list = list;
            }

            public List<Integer> getNavigatepageNums() {
                return navigatepageNums;
            }

            public void setNavigatepageNums(List<Integer> navigatepageNums) {
                this.navigatepageNums = navigatepageNums;
            }

            public static class ListBean {
                /**
                 * id : 52
                 * merchandiseName : 羽绒服
                 * photoUrls : http://localhost:8082/merchandisePhotos/20180202/d52a4720-2e91-444e-b9bd-25adf8265d2d234917-121019231h258.jpg
                 * commonPrice : 1
                 * memberPrice : 1
                 * salesAmount : 77
                 */

                private int id;
                private String merchandiseName;
                private String photoUrls;
                private double commonPrice;
                private double memberPrice;
                private int salesAmount;

                public int getSalesAmount() {
                    return salesAmount;
                }

                public void setSalesAmount(int salesAmount) {
                    this.salesAmount = salesAmount;
                }

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getMerchandiseName() {
                    return merchandiseName;
                }

                public void setMerchandiseName(String merchandiseName) {
                    this.merchandiseName = merchandiseName;
                }

                public String getPhotoUrls() {
                    return photoUrls;
                }

                public void setPhotoUrls(String photoUrls) {
                    this.photoUrls = photoUrls;
                }

                public double getCommonPrice() {
                    return commonPrice;
                }

                public void setCommonPrice(double commonPrice) {
                    this.commonPrice = commonPrice;
                }

                public double getMemberPrice() {
                    return memberPrice;
                }

                public void setMemberPrice(double memberPrice) {
                    this.memberPrice = memberPrice;
                }
            }
        }

        public static class CategoryListBean {
            /**
             * id : 1
             * categoryName : 运动装备
             * isAbandoned : true
             * showNo : 1
             */

            private int id;
            private String categoryName;
            private boolean isAbandoned;
            private int showNo;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getCategoryName() {
                return categoryName;
            }

            public void setCategoryName(String categoryName) {
                this.categoryName = categoryName;
            }

            public boolean isIsAbandoned() {
                return isAbandoned;
            }

            public void setIsAbandoned(boolean isAbandoned) {
                this.isAbandoned = isAbandoned;
            }

            public int getShowNo() {
                return showNo;
            }

            public void setShowNo(int showNo) {
                this.showNo = showNo;
            }
        }
    }
}
